package com.csi.jf.crucible.ptservice.model;

import com.chinasofti.ro.bizframework.core.data.validation.IValidator;
import com.chinasofti.ro.bizframework.core.orm.entity.Model;

import java.sql.Date;
import java.io.Reader;
import java.sql.Timestamp;

/**
 * 
 * @author BizFoundation
 * @version 1.0
 * @since 1.0
 */
public class PTSTask extends Model implements IValidator {
	/**
	 * 
	 */
	private static final long serialVersionUID = -7689793303683529959L;
	// Fields    
	private Long taskId; 
	private String taskName; 
	private String creator; 
	private Long projectId; 
	private Date dueStartdate; 
	private Date dueEnddate; 
	private String taskstatusCode; 
	private Long personId;
	private String price;
	private String status;
//	private Reader memo; 
//	private Timestamp createTime; 
//	private Timestamp updateTime; 
		
	//default constructor
    public PTSTask() {
    	super();
    }
    
    // Property accessors
	public Long getTaskId() {
        return this.taskId;
    }
    
    public void setTaskId(Long taskId) {
    	this.taskId = taskId;
    }
    
	public String getTaskName() {
        return this.taskName;
    }
    
    public void setTaskName(String taskName) {
    	this.firePropertyChange("taskName", this.taskName, taskName);
    	this.taskName = taskName;
    }
    
	public String getCreator() {
        return this.creator;
    }
    
    public void setCreator(String creator) {
    	this.firePropertyChange("creator", this.creator, creator);
    	this.creator = creator;
    }
    
	public Long getProjectId() {
        return this.projectId;
    }
    
    public void setProjectId(Long projectId) {
    	this.firePropertyChange("projectId", this.projectId, projectId);
    	this.projectId = projectId;
    }
    
	public String getPrice() {
        return this.price;
    }
    
    public void setPrice(String price) {
    	this.firePropertyChange("price", this.price, price);
    	this.price = price;
    }
    
	public String getStatus() {
        return this.status;
    }
    
    public void setStatus(String status) {
    	this.firePropertyChange("status", this.status, status);
    	this.status = status;
    }
    
	public Date getDueStartdate() {
        return this.dueStartdate;
    }
    
    public void setDueStartdate(Date dueStartdate) {
    	this.firePropertyChange("dueStartdate", this.dueStartdate, dueStartdate);
    	this.dueStartdate = dueStartdate;
    }
    
	public Date getDueEnddate() {
        return this.dueEnddate;
    }
    
    public void setDueEnddate(Date dueEnddate) {
    	this.firePropertyChange("dueEnddate", this.dueEnddate, dueEnddate);
    	this.dueEnddate = dueEnddate;
    }
    
	public String getTaskstatusCode() {
        return this.taskstatusCode;
    }
    
    public void setTaskstatusCode(String taskstatusCode) {
    	this.firePropertyChange("taskstatusCode", this.taskstatusCode, taskstatusCode);
    	this.taskstatusCode = taskstatusCode;
    }
    
	public Long getPersonId() {
        return this.personId;
    }
    
    public void setPersonId(Long personId) {
    	this.firePropertyChange("personId", this.personId, personId);
    	this.personId = personId;
    }
    
//	public Reader getMemo() {
//        return this.memo;
//    }
//    
//    public void setMemo(Reader memo) {
//    	this.firePropertyChange("memo", this.memo, memo);
//    	this.memo = memo;
//    }
    
//	public Timestamp getCreateTime() {
//        return this.createTime;
//    }
//    
//    public void setCreateTime(Timestamp createTime) {
//    	this.firePropertyChange("createTime", this.createTime, createTime);
//    	this.createTime = createTime;
//    }
//    
//	public Timestamp getUpdateTime() {
//        return this.updateTime;
//    }
//    
//    public void setUpdateTime(Timestamp updateTime) {
//    	this.firePropertyChange("updateTime", this.updateTime, updateTime);
//    	this.updateTime = updateTime;
//    }
    
   	public boolean validate(Object arg0) {
		//JfPtsTask jfPtsTask = (JfPtsTask)arg0;
		//Validation.required("jfPtsTask.taskId",jfPtsTask.getTaskId());
		return true;
	}
}